package com.vhans.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhans.core.domain.Storage;
import com.vhans.db.model.dto.ConditionDTO;
import com.vhans.db.model.vo.storage.StorageInfoVO;
import com.vhans.db.model.vo.storage.StorageVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储Mapper接口
 *
 * @author vhans
 * @date 2023-05-20
 */
@Repository
public interface StorageMapper extends BaseMapper<Storage> {

    /**
     * 查询存储列表
     *
     * @param condition 查询条件
     * @return 存储集合
     */
    List<StorageVO> selectStorageVOList(@Param("condition") ConditionDTO condition);

    /**
     * 通过主键查询存储信息
     *
     * @param id 存储ID
     * @return 结果
     */
     StorageInfoVO selectStorageInfoById(Integer id);

}
